import http from './httpInstance';

// 企业档案列表页面
function getenterpriselist(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/safearchives/enterprise/qrylist',
    data: params,
  });
}

// 企业档案列表详情
function qrydetail(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/safearchives/enterprise/qrydetail',
    data: params,
  });
}

// 新增或者编辑企业档案

function addorupdataenterprise(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/safearchives/enterprise/edit',
    data: params,
  });
}

// 企业商户安全检查记录
function getsalfList(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/safearchives/enterprise/qryinspectlists',
    data: params,
  });
}

// 获取商户档案列表
function getmerchatlist(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/safearchives/merchant/qrylist',
    data: params,
  });
}

// 获取商户档案详情
function getshdetail(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/safearchives/merchant/qrydetail',
    data: params,
  });
}

// 新增或者编辑企业档案

function addorupdatashrprise(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/safearchives/merchant/edit',
    data: params,
  });
}

// 安全生产报表:top5

function getreportListTop(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/safearchives/report/summarize',
    data: params,
  });
}

// 安全生产报表：数据变化

function getinspectissuesbar(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/safearchives/report/inspectissuesbar',
    data: params,
  });
}

// 安全检查：日历
function inspectissuescalendar(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/safearchives/report/inspectissuescalendar',
    data: params,
  });
}

// 安全检查：企业分析
function enterpriseanalysis(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/safearchives/report/enterpriseanalysis',
    data: params,
  });
}

// 安全检查：企业分析
function getFcListApi(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/safearchives/report/inspectlists',
    data: params,
  });
}

// 获取行业类别
function industrycategory() {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/safearchives/param/industrycategory',
  });
}

// 获取经营状态
function getDaType(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/safearchives/param/paramkvlist',
    data: params,
  });
}

// 安全数据档案list
function getAqsjdaList(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/safearchives/inspect/report',
    data: params,
  });
}

// 查询详情

function getaqscxq(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/safearchives/inspection/qrydetail',
    data: params,
  });
}

export {
  getaqscxq,
  getAqsjdaList,
  addorupdatashrprise,
  getshdetail,
  getDaType,
  qrydetail,
  industrycategory,
  getFcListApi,
  getenterpriselist,
  addorupdataenterprise,
  getsalfList,
  getmerchatlist,
  getreportListTop,
  getinspectissuesbar,
  inspectissuescalendar,
  enterpriseanalysis,
};
